/*
 * Copyright (c) 2025 Li Auto Inc. and its affiliates
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef INCLUDE_EDDS_RTPS_COMMON_VERSION_T_HPP_
#define INCLUDE_EDDS_RTPS_COMMON_VERSION_T_HPP_

#include <array>
#include <cstdint>
#include <iostream>
#include <string>
#include <regex>
#include <mutex>

#ifndef VBS_VERSION_VALUE
#ifdef VBS_VERSION
#define VBS_VERSION_VALUE VBS_VERSION
#else
#define VBS_VERSION_VALUE "2.1.0.0-20250311-789"  //"VBS1.2.0-000"
#endif
#endif

namespace evbs {
namespace edds {
namespace rtps {

//!@brief Structure Version_t, specifying the vbs version of the implementation.
using EvbsVersion_t = std::array<uint8_t, 4>;

extern const EvbsVersion_t c_Version_vbs;
const EvbsVersion_t c_Version_vbs_unknown = {0x00, 0x00, 0x00, 0x00};

}  // namespace rtps
}  // namespace edds
}  // namespace evbs

#endif  // INCLUDE_EDDS_RTPS_COMMON_VERSION_T_HPP_
